package com.yyy.spring6.di2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Project ：learn_spring
 * @File ：TestEmployee.java
 * @IDE ：IntelliJ IDEA
 * @Author ：自由如风间
 * @Date ：2025/3/29 17:29
 * @Description ：测试employee
 */

public class TestEmployee {
    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("bean-di2.xml");
        Employee employee = context.getBean("emp4", Employee.class);
        employee.work();
    }
}
